package com.itheima.method;

public class Demo2 {
    public static void main(String[] args) {
        printOddNumber(10,20);
    }

    public static void printOddNumber(int n, int m) {
       System.out.println(" n-m之间的奇数为:");
        for (int i = n; i <m; i++) {
            if(i%2==0){
                System.out.println(i);
            }

        }
    }
}
